package org.fioma.ui;

import org.fioma.general.Tools;

public class SequenceFastQ {

	String sequence, quality, name;

	public SequenceFastQ(String name, String sequence, String quality) {
		this.sequence = sequence;
		this.quality = quality;
		this.name = name;
	}

	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}

	public String getQuality() {
		return quality;
	}

	public void setQuality(String quality) {
		this.quality = quality;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLength() {
		return sequence.length();
	}

	public byte[] getSequenceBytesInverted() {
		return Tools.getBytesInverted(sequence.toUpperCase().replace('N', 'A'));
	}

	public byte[] getSequenceBytesComplementar() {
		return Tools.getBytesComplementar(sequence.toUpperCase().replace('N', 'A'));
	}

}
